package com.moon.game.server;
import org.jboss.netty.channel.Channel;

import com.moon.game.message.ObjMessage;

public class DataSession {
	private String playerId; 					//系统生成、唯一标识一个请求对应的session
	private ObjMessage request = null;			//客户端请求对象
	private Channel channel = null;	 
	private long createTime;
	public DataSession() {
	}

	public DataSession(ObjMessage request, Channel channel) {
		this.playerId = request.getPid();
		this.request = request;
		this.channel = channel;
		this.createTime = System.currentTimeMillis();
	}

	public String getPlayerId() {
		return playerId;
	}

	public void setPlayerId(String playerId) {
		this.playerId = playerId;
	}

	public ObjMessage getRequest() {
		return request;
	}

	public void setRequest(ObjMessage request) {
		this.request = request;
	}

	public Channel getChannel() {
		return channel;
	}

	public void setChannel(Channel channel) {
		this.channel = channel;
	}

	public long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}

}
